package com.alan.quartz.task;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by liufan
 * 2018-12-12
 */
public class Quartz implements Job {
    Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //TODO 业务处理
        logger.info("Quartz开始执行，Quartz say hello word !!!");
    }
    private void before() {
        logger.info("我是Quartz任务开始");
    }
    private void after() {
        logger.info("我是Quartz任务结束");
    }
}
